package me.yangteng.zhihudaily.activity;

import android.os.Bundle;
import android.support.v7.app.ActionBar;

import me.yangteng.zhihudaily.R;
import me.yangteng.zhihudaily.fragment.MainPreferenceFragment;

public class SettingsActivity extends me.imid.swipebacklayout.lib.app.SwipeBackActivity {

  private ActionBar actionBar;

  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_settings);
    getFragmentManager().beginTransaction().replace(R.id.content_frame, new MainPreferenceFragment()).commit();

    actionBar = getSupportActionBar();
    initActionBar();
  }

  private void initActionBar() {
    actionBar.setTitle(R.string.title_activity_settings);
  }

}
